package com.wisdom.benefit.jufa.entity;

import android.os.Parcel;
import android.os.Parcelable;

public class AccountInfo implements Parcelable {

    private String account;
    private String phone;
    private String authStatus;//用户认证状态：0未认证，1企业已认证，2法人已认证，3已上传授权文件
    private String insName;
    private String creditCode;
    private String regAssets;
    private String insType;
    private String regDate;
    private String regGov;
    private String legalPerson;
    private String legalPersonPhone;
    private String idCard;
    private String esignStatus;//e签署状态 0：未签署 1：企业已签署 2：法人已签署
    private String approveStatus;//上传的授权文件审核状态 0待审核、1通过、2拒绝

    public String getAccount() {
        return account;
    }

    public String getPhone() {
        return phone;
    }

    public String getAuthStatus() {
        return authStatus;
    }

    public String getInsName() {
        return insName;
    }

    public String getCreditCode() {
        return creditCode;
    }

    public String getRegAssets() {
        return regAssets;
    }

    public String getInsType() {
        return insType;
    }

    public String getRegDate() {
        return regDate;
    }

    public String getRegGov() {
        return regGov;
    }

    public String getLegalPerson() {
        return legalPerson;
    }

    public String getLegalPersonPhone() {
        return legalPersonPhone;
    }

    public String getIdCard() {
        return idCard;
    }

    public String getEsignStatus() {
        return esignStatus;
    }

    public String getApproveStatus() {
        return approveStatus;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(this.account);
        dest.writeString(this.phone);
        dest.writeString(this.authStatus);
        dest.writeString(this.insName);
        dest.writeString(this.creditCode);
        dest.writeString(this.regAssets);
        dest.writeString(this.insType);
        dest.writeString(this.regDate);
        dest.writeString(this.regGov);
        dest.writeString(this.legalPerson);
        dest.writeString(this.legalPersonPhone);
        dest.writeString(this.idCard);
        dest.writeString(this.esignStatus);
        dest.writeString(this.approveStatus);
    }

    public AccountInfo() {
    }

    protected AccountInfo(Parcel in) {
        this.account = in.readString();
        this.phone = in.readString();
        this.authStatus = in.readString();
        this.insName = in.readString();
        this.creditCode = in.readString();
        this.regAssets = in.readString();
        this.insType = in.readString();
        this.regDate = in.readString();
        this.regGov = in.readString();
        this.legalPerson = in.readString();
        this.legalPersonPhone = in.readString();
        this.idCard = in.readString();
        this.esignStatus = in.readString();
        this.approveStatus = in.readString();
    }

    public static final Creator<AccountInfo> CREATOR = new Creator<AccountInfo>() {
        @Override
        public AccountInfo createFromParcel(Parcel source) {
            return new AccountInfo(source);
        }

        @Override
        public AccountInfo[] newArray(int size) {
            return new AccountInfo[size];
        }
    };
}
